<<<<<<< HEAD
/* * @Author: Zhengxuan Ye * @Date: 2025-05-06 21:28:09 * @Last Modified by: Zhengxuan Ye * @Last
Modified time: 2025-05-06 21:28:09 */
=======
/*
 * @Author: Zhengxuan Ye
 * @Date: 2025-05-06 21:28:09
 * @Last Modified by:   Zhengxuan Ye
 * @Last Modified time: 2025-05-06 21:28:09
 */
>>>>>>> ba93636 (前端建设完成)

<template>
  <div class="featured-heritage-detail">
    <div class="container">
      <!-- 面包屑导航 -->
      <div class="breadcrumbs">
        <router-link to="/">首页</router-link> &gt;
        <router-link to="/heritage-list">遗产名录</router-link> &gt;
        <span>京剧</span>
      </div>

      <!-- 主要内容区 -->
      <div class="heritage-content">
        <!-- 遗产标题信息 -->
        <div class="heritage-header">
          <h1>京剧</h1>
          <div class="heritage-meta">
            <div class="heritage-meta-item">
              <span class="meta-label">所在地区:</span>
              <span class="meta-value">北京</span>
            </div>
            <div class="heritage-meta-item">
              <span class="meta-label">类别:</span>
              <span class="meta-value">传统戏剧</span>
            </div>
            <div class="heritage-meta-item">
              <span class="meta-label">级别:</span>
              <span class="meta-value level-badge level-unesco">联合国教科文组织名录</span>
            </div>
            <div class="heritage-meta-item">
              <span class="meta-label">认定时间:</span>
              <span class="meta-value">2010年</span>
            </div>
          </div>
        </div>

        <!-- 遗产详情主体 -->
        <div class="heritage-body">
          <div class="heritage-main">
            <!-- 图片展示区域 -->
            <div class="heritage-images">
              <div class="main-image">
                <img :src="currentImage" alt="京剧" class="main-img" />
                <div class="image-source">素材来源于维基百科</div>
                <div class="image-caption">{{ currentCaption }}</div>
              </div>
              <div class="thumbnail-list">
                <div
                  class="thumbnail"
                  @click="showImage(pic1, '京剧表演艺术')"
                  :class="{ active: currentImage === pic1 }"
                >
                  <img :src="pic1" alt="京剧表演艺术" />
                </div>
                <div
                  class="thumbnail"
                  @click="showImage(pic2, '京剧脸谱艺术')"
                  :class="{ active: currentImage === pic2 }"
                >
                  <img :src="pic2" alt="京剧脸谱艺术" />
                </div>
                <div
                  class="thumbnail"
                  @click="showImage(pic3, '京剧服饰展示')"
                  :class="{ active: currentImage === pic3 }"
                >
                  <img :src="pic3" alt="京剧服饰展示" />
                </div>
              </div>
            </div>

            <!-- 详细介绍 -->
            <div class="heritage-sections">
              <div class="heritage-section">
                <h2 class="section-title">简介</h2>
                <div class="section-content">
                  <p>
                    京剧，又称"平剧"，是中国五大戏曲剧种之一，被誉为"中国国粹"。京剧形成于清朝乾隆末年至嘉庆年间，是在徽班进入北京后，将徽剧与汉调、昆曲、秦腔等多种艺术形式融合而成的一种综合性表演艺术。
                  </p>
                  <p>
                    京剧集唱、念、做、打于一体，融汇了音乐、舞蹈、文学、美术等多种艺术形式，以其丰富的文化内涵、精湛的表演技艺和独特的艺术风格，成为中国传统戏曲的代表。2010年，京剧被联合国教科文组织列入人类非物质文化遗产代表作名录。
                  </p>
                </div>
              </div>

              <div class="heritage-section">
                <h2 class="section-title">历史渊源</h2>
                <div class="section-content">
                  <p>
                    京剧的形成可追溯到清乾隆五十五年（1790年），徽班（安徽戏班）进京演出，经过与其他戏曲流派的融合与发展，逐渐形成了独具特色的京剧艺术。
                  </p>
                  <p>
                    京剧在清朝末年和民国时期得到蓬勃发展，涌现出谭鑫培、杨小楼、梅兰芳、尚小云、荀慧生、程砚秋等一大批杰出艺术家。尤其是梅兰芳，将京剧艺术推向国际舞台，使世界了解中国传统戏曲艺术。
                  </p>
                  <p>
                    新中国成立后，京剧得到了进一步繁荣和发展，并不断创新改革，创作了许多反映现实生活的新剧目，丰富了京剧的表现内容和形式。
                  </p>
                </div>
              </div>

              <div class="heritage-section">
                <h2 class="section-title">艺术特点</h2>
                <div class="section-content">
                  <p>京剧作为一种综合性表演艺术，具有以下显著特点：</p>
                  <ol>
                    <li>
                      <strong>程式化表演</strong
                      >：京剧表演有严格的程式规范，包括唱、念、做、打四种基本功法
                    </li>
                    <li>
                      <strong>角色行当</strong
                      >：分为生（男性角色）、旦（女性角色）、净（性格豪放的男性角色，多画脸）、丑（诙谐角色）四大行当
                    </li>
                    <li>
                      <strong>脸谱艺术</strong
                      >：脸谱色彩鲜艳，图案夸张，是京剧重要的视觉符号，不同颜色象征不同性格
                    </li>
                    <li>
                      <strong>音乐特色</strong
                      >：以西皮、二黄两大主要声腔为基础，配以板式变化和不同的伴奏乐器
                    </li>
                    <li><strong>服饰道具</strong>：服装华丽考究，道具简练象征性强，舞台布景简约</li>
                  </ol>
                  <p>
                    京剧表演追求"神形兼备"，演员通过眼神、手势、身段等细腻的表演，将角色的内心世界和故事情节表现得淋漓尽致，体现出极高的艺术造诣。
                  </p>
                </div>
              </div>

              <div class="heritage-section">
                <h2 class="section-title">传承情况</h2>
                <div class="section-content">
                  <p>
                    京剧目前主要通过专业院校教育和艺术团体传承。中国戏曲学院、北京京剧院、上海京剧院等机构培养了大批京剧人才，保证了这一艺术形式的传承与发展。
                  </p>
                  <p>
                    为了保护和传承京剧艺术，国家实施了多项保护措施，包括支持京剧艺术创作，举办京剧表演展示活动，开展京剧进校园、进社区等普及活动，以及对老艺术家的口述史记录和珍贵资料的收集整理等。
                  </p>
                  <p>
                    近年来，京剧也在探索创新与传统的结合，一方面保持传统艺术的精髓，一方面融入现代元素，使这一古老艺术焕发新的生机。众多青年京剧演员的崭露头角，也为京剧的传承与发展注入了新的活力。
                  </p>
                </div>
              </div>
            </div>

            <!-- 社交互动部分 -->
            <SocialInteraction :pageId="103" pageType="featured" />
          </div>

          <!-- 侧边栏 -->
          <div class="heritage-sidebar">
            <!-- 传承人信息 -->
            <div class="sidebar-box inheritors-box">
              <h3 class="sidebar-title">代表性传承人</h3>
              <ul class="inheritors-list">
                <li class="inheritor-item">
                  <div class="inheritor-image-placeholder">梅兰芳照片</div>
                  <div class="inheritor-info">
                    <div class="inheritor-name">梅兰芳(历史传承人)</div>
                    <div class="inheritor-meta">京剧表演艺术大师</div>
                  </div>
                </li>
                <li class="inheritor-item">
                  <div class="inheritor-image-placeholder">袁慧琴照片</div>
                  <div class="inheritor-info">
                    <div class="inheritor-name">袁慧琴</div>
                    <div class="inheritor-meta">国家级传承人</div>
                  </div>
                </li>
                <li class="inheritor-item">
                  <div class="inheritor-image-placeholder">李维康照片</div>
                  <div class="inheritor-info">
                    <div class="inheritor-name">李维康</div>
                    <div class="inheritor-meta">国家级传承人</div>
                  </div>
                </li>
              </ul>
            </div>

            <!-- 经典剧目 -->
            <div class="sidebar-box repertoire-box">
              <h3 class="sidebar-title">经典剧目</h3>
              <div class="repertoire-info">
                <p>《霸王别姬》</p>
                <p>《贵妃醉酒》</p>
                <p>《沙家浜》</p>
                <p>《智取威虎山》</p>
                <p>《凤还巢》</p>
              </div>
            </div>

            <!-- 相关遗产推荐 -->
            <div class="sidebar-box related-box">
              <h3 class="sidebar-title">相关遗产推荐</h3>
              <ul class="related-list">
                <li class="related-item">
                  <router-link to="/featured/huang-mei-opera" class="related-link">
                    <div class="related-image-placeholder">黄梅戏图片</div>
                    <div class="related-name">黄梅戏</div>
                  </router-link>
                </li>
                <li class="related-item">
                  <router-link to="/featured/su-zhou-embroidery" class="related-link">
                    <div class="related-image-placeholder">苏州刺绣图片</div>
                    <div class="related-name">苏州刺绣</div>
                  </router-link>
                </li>
                <li class="related-item">
                  <router-link to="/featured/jing-tai-lan" class="related-link">
                    <div class="related-image-placeholder">景泰蓝图片</div>
                    <div class="related-name">景泰蓝</div>
                  </router-link>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { ref } from 'vue'
import pic1 from '../../assets/jingju/pic1.jpg'
import pic2 from '../../assets/jingju/pic2.jpg'
import pic3 from '../../assets/jingju/pic3.jpg'
<<<<<<< HEAD
import SocialInteraction from '../../components/SocialInteraction.vue'

export default {
  name: 'PekingOperaView',
  components: {
    SocialInteraction,
  },
=======

export default {
  name: 'PekingOperaView',
>>>>>>> ba93636 (前端建设完成)
  setup() {
    const currentImage = ref(pic1)
    const currentCaption = ref('京剧表演艺术')

    const showImage = (image, caption) => {
      currentImage.value = image
      currentCaption.value = caption
    }

    return {
      pic1,
      pic2,
      pic3,
      currentImage,
      currentCaption,
      showImage,
    }
  },
}
</script>

<style scoped>
.featured-heritage-detail {
  padding: 40px 0;
}

/* 面包屑导航 */
.breadcrumbs {
  margin-bottom: 25px;
  color: #666;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* 遗产标题信息 */
.heritage-header {
  margin-bottom: 30px;
}

.heritage-header h1 {
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.heritage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px;
  background-color: rgba(184, 134, 11, 0.05);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.heritage-meta-item {
  display: flex;
  align-items: center;
}

.meta-label {
  font-weight: bold;
  margin-right: 10px;
  color: var(--secondary-color);
}

.level-badge {
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.level-national {
  background-color: #f0f8ff;
  color: #1e90ff;
}

.level-unesco {
  background-color: #fff0f5;
  color: #c71585;
}

/* 遗产详情主体 */
.heritage-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.heritage-main {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

/* 图片展示区 */
.heritage-images {
  margin-bottom: 30px;
}

.main-image {
  height: 400px;
  position: relative;
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.main-image:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.main-image:hover .main-img {
  transform: scale(1.03);
}

.image-source {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 1;
  backdrop-filter: blur(2px);
}

.image-caption {
  text-align: center;
  padding: 8px;
  color: #555;
  font-size: 0.95rem;
  margin-top: 5px;
  font-weight: 500;
}

.thumbnail-list {
  display: flex;
  gap: 12px;
  padding: 0 10px;
  justify-content: center;
}

.thumbnail {
  width: 100px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.thumbnail:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
  border-color: var(--primary-color);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail:hover img {
  transform: scale(1.08);
}

/* 详细介绍 */
.heritage-sections {
  padding: 20px;
}

.heritage-section {
  margin-bottom: 30px;
}

.section-title {
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.section-content {
  line-height: 1.8;
  color: var(--text-color);
}

.section-content p {
  margin-bottom: 15px;
}

.section-content ol,
.section-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.section-content li {
  margin-bottom: 10px;
}

/* 社交互动部分 */
.social-interaction {
  padding: 20px;
  border-top: 1px solid rgba(184, 134, 11, 0.2);
}

.interaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.login-tip {
  font-size: 0.9rem;
  color: #666;
}

.login-tip a {
  color: var(--primary-color);
  text-decoration: none;
}

.login-tip a:hover {
  text-decoration: underline;
}

.interaction-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.interaction-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--dark-color);
  cursor: pointer;
  transition: var(--transition);
}

.interaction-btn:hover {
  background-color: rgba(184, 134, 11, 0.1);
}

.interaction-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.interaction-btn .count {
  font-weight: bold;
  color: var(--primary-color);
}

.interaction-btn.active .count {
  color: white;
}

/* 评论区域 */
.comments-section {
  margin-top: 30px;
}

.comments-section h3 {
  margin-bottom: 20px;
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  color: var(--dark-color);
}

.comment-form {
  margin-bottom: 30px;
}

.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  background-color: #f9f9f9;
  resize: vertical;
}

.submit-comment-btn {
  padding: 8px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.submit-comment-btn:hover:not(:disabled) {
  background-color: var(--accent-color);
}

.submit-comment-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.comment-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-color);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.comment-author {
  color: var(--dark-color);
}

.comment-time {
  font-size: 0.8rem;
  color: #666;
}

.comment-body {
  line-height: 1.6;
}

/* 侧边栏 */
.heritage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-box {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.sidebar-title {
  padding: 15px;
  background-color: rgba(184, 134, 11, 0.1);
  color: var(--dark-color);
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.inheritors-list,
.related-list {
  padding: 15px;
  list-style: none;
}

.inheritor-item,
.related-item {
  display: flex;
  gap: 10px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(184, 134, 11, 0.1);
}

.inheritor-item:last-child,
.related-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.inheritor-image-placeholder,
.related-image-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  color: var(--secondary-color);
  font-size: 0.8rem;
  border: 1px dashed var(--primary-color);
  border-radius: 4px;
}

.inheritor-info {
  flex: 1;
}

.inheritor-name {
  font-weight: bold;
  color: var(--dark-color);
  margin-bottom: 5px;
}

.inheritor-meta {
  font-size: 0.85rem;
  color: #666;
}

.related-link {
  display: flex;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: var(--dark-color);
  transition: var(--transition);
}

.related-link:hover {
  transform: translateY(-2px);
}

.related-name {
  flex: 1;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.repertoire-info,
.protection-info {
  padding: 15px;
}

.repertoire-info p,
.protection-info p {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .heritage-body {
    grid-template-columns: 1fr;
  }

  .main-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .heritage-meta {
    flex-direction: column;
    gap: 10px;
  }

  .thumbnail-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-image {
    height: 250px;
  }

  .interaction-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .thumbnail {
    width: 85px;
    height: 65px;
  }
}
</style>
